<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>henu_oj</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<link rel="stylesheet" href="__ROOT__/source/admin_source/tpl/static/css/bootstrap.min.css" type="text/css" media="all" />
		<link rel="stylesheet" href="__ROOT__/source/admin_source/tpl/static/css/jquery-ui.min.css" type="text/css" media="all" />
		<link rel="stylesheet" href="__ROOT__/source/admin_source/tpl/Admin/common/css/admin.css" type="text/css" />
	</head>
	<script type="text/javascript" src="__ROOT__/source/admin_source/tpl/static/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="__ROOT__/source/admin_source/tpl/static/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="__ROOT__/source/admin_source/tpl/static/js/jquery.artDialog.js?skin=aero"></script>
	<script type="text/javascript" src="__ROOT__/source/admin_source/tpl/static/js/iframeTools.js"></script>
	<script type="text/javascript" src="__ROOT__/source/admin_source/tpl/static/js/jquery.form.min.js"></script>
	<script type="text/javascript" src="__ROOT__/source/admin_source/tpl/static/js/jquery.validate.min.js"></script>
	<script language="javascript" src="__ROOT__/source/admin_source/tpl/static/js/jquery.imagePreview.js"></script>
	<script type="text/javascript" src="__ROOT__/source/admin_source/tpl/static/js/jquery-ui.min.js"></script>
	<script type="text/javascript" src="__ROOT__/source/admin_source/tpl/static/js/datepicker.js"></script>
	<script type="text/javascript" src="__ROOT__/source/admin_source/tpl/Admin/common/js/common.js"></script>

	<body>
		<!--顶部-->
		<nav class="navbar navbar-inverse">
			<div class="container-fluid">
				<div class="navbar-header">
					<a class="navbar-brand" href="<{:U('article/showlist')}>">henu_oj后台管理</a>
				</div>

				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav navbar-right">
						<li>
							<a href="http://www.kftxlz.gov.cn" target="_blank"><i class="glyphicon glyphicon-home"></i> 网站首页</a>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="glyphicon glyphicon-user"></i>
								<{$description}>【
									<{$username}>】 <span class="caret"></span></a>
							<ul class="dropdown-menu" role="menu">
								<li>
									<a href="<{:U('Index/loginout')}>">退出</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
				<!-- /.navbar-collapse -->
			</div>
			<!-- /.container-fluid -->
		</nav>
		<!--顶部结束-->

		<div class="container-fluid">
			<div class="row">
				<include file="Admin:leftmenu" />
				<div class="col-md-10">

					<ol class="breadcrumb">
						<li>
							电函管理
						</li>
						<li class="active">电函列表</li>
					</ol>

					<!--<div class="form-inline">
						<form action="<{:U('Article/showlist')}>" method="post">
							<div class="form-group">
								<label>分类：</label>
								<select name="path" id="path" class="form-control input-sm" onchange="jumpUrl()">
									<option value="<{:U('Article/showlist')}>">全部</option>
									<option value="<{:U('Article/showlist',array('type'=>1))}>">上级要闻</option>
									<option value="<{:U('Article/showlist',array('type'=>2))}>">本县要闻</option>
									<option value="<{:U('Article/showlist',array('type'=>3))}>">监督曝光</option>
									<option value="<{:U('Article/showlist',array('type'=>4))}>">党风政风</option>
									<option value="<{:U('Article/showlist',array('type'=>5))}>">巡视巡查</option>
									<option value="<{:U('Article/showlist',array('type'=>6))}>">宣传教育</option>
									<option value="<{:U('Article/showlist',array('type'=>7))}>">纪律审查</option>
									<option value="<{:U('Article/showlist',array('type'=>8))}>">派驻工作</option>
									<option value="<{:U('Article/showlist',array('type'=>9))}>">基层动态</option>
									<option value="<{:U('Article/showlist',array('type'=>10))}>">队伍建设</option>
									<option value="<{:U('Article/showlist',array('type'=>11))}>">廉政文化</option>
									<option value="<{:U('Article/showlist',array('type'=>12))}>">家风家训</option>
									<option value="<{:U('Article/showlist',array('type'=>13))}>">读书时间</option>
									<option value="<{:U('Article/showlist',array('type'=>14))}>">勤廉榜样</option>
									<option value="<{:U('Article/showlist',array('type'=>15))}>">廉政时评</option>
									<option value="<{:U('Article/showlist',array('type'=>16))}>">他山之石</option>
									<option value="<{:U('Article/showlist',array('type'=>17))}>">公告栏</option>
								</select>
							</div>

							<div class="form-group">
								<label>关键词：</label>
								<input type="text" class="form-control input-sm" name="key" value="<{$key}>">
							</div>
							<button type="submit" class="btn btn-default btn-sm">搜索</button>
						</form>
					</div>-->

					<p></p>

					<form id="ajaxForm" method="post" action="" name="form1" class="form-horizontal form-validata">
						<TABLE class="table table-striped table-bordered table-hover">
							<THEAD>
								<tr>
									<TH>id</TH>
									<TH>电函编号</TH>
									<TH>接收方</TH>
									<TH>发送日期</TH>
									<TH>是否回复</TH>
									<TH>回复内容</TH>
									<TH>回复日期</TH>
									<if condition="$is_admin eq 1">
										<TH>收藏</TH>
										<TH>删除</TH>
									</if>
								</tr>
							</THEAD>
							<TBODY>
								<volist name="message" id="ar">
									<tr>
										<td>
											<{$ar.id}>
										</td>
										<td>
											<a href="<{:U('Article/view',array('id'=>$ar['id']))}>" class="preview" alt="" title="<{$ar.title}>">
												<{$ar.dh_number}>
											</a>
										</td>
										<td>
											<{$ar.receiver}>
										</td>
										<td>
											<php>
												echo date("Y-m-d",$ar['send_time']);
											</php>
										</td>
										<td>
											<if condition="$ar['is_reply'] eq 1">
												<span style="color: green;">
													已回复
												</span>
												<else />
												<span style="color: red;">
													未回复
												</span>
											</if>
										</td>
										<td>
											<if condition="$ar['is_reply'] eq 1">
												<a href="<{:U('Article/view_reply',array('id'=>$ar['id']))}>" class="btn btn-info btn-xs">点我查看</a>
												<else />
												<if condition="$is_admin eq 1">
													<span style="color: red;">
														未回复
													</span>
												<else/>
													<a class="btn btn-xs btn-warning" href="<{:U('Article/reply',array('id'=>$ar['id']))}>">点此进行回复</a>
												</if>
												
											</if>
										</td>
										<td>
											<if condition="$ar['is_reply'] eq 1">
												<php>
													echo date("Y-m-d",$ar['reply_time']);
												</php>
												<else />
												<span style="color: red;">
													未回复
												</span>
											</if>
										</td>
										<if condition="$is_admin eq 1">
										<td>
											<if condition="$ar['is_collect'] eq 1">
												<a class="btn btn-xs btn-warning" href="<{:U('Article/collect',array('id'=>$ar['id'],'type'=>0))}>">取消收藏</a>
												<else/>
												<a class="btn btn-xs btn-success" href="<{:U('Article/collect',array('id'=>$ar['id'],'type'=>1))}>">收藏</a>
											</if>
										</td>
										<td>
											<a class="btn btn-xs btn-danger"  href="<{:U('Article/delete',array('id'=>$ar['id']))}>">删除</a>
										</td>
										</if>
									</tr>

								</volist>
							</TBODY>
						</TABLE>

						<!--<div class="row">
							<div class="col-md-6">
								<div class="page">
									<nav>
										<ul class="pagination">
											<li>
												<span>第<{$pagenow}>页&nbsp;&nbsp;共<{$pagenum}>页</span>
												<for start="1" end="$pagenum+1">
													<a href="<{:U('Article/showlist',array('page'=>$i))}>" <if condition="$i eq $pagenow ">class="now"</if>
														>
														<{$i}>
													</a>
												</for>
											</li>
										</ul>
									</nav>
								</div>
							</div>
						</div>-->
					</form>

					<script type="text/javascript">
						$("#path").val("");
					</script>

					<input type="hidden" id="menu_action" value="article" />
				</div>
			</div>

		</div>

		<script type="text/javascript">
			$(document).ready(function() {
				//幻灯片元素与类“menu_body”段与类“menu_head”时点击
				var menu_action = $("#menu_action").val();
				$("#p_" + menu_action).addClass("select");
				$("#b_" + menu_action).show().addClass("local");

				$("#nav p").click(function() {
					$(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
					$("#nav p").removeClass("select");
					$(this).addClass("select");
					$(this).next("div.menu_body").addClass("local");
				});
			});
		</script>

	</body>

</html>